package com.lyj.hw_student.system.controller;

import com.lyj.hw_student.common.Result;
import com.lyj.hw_student.system.entity.Teacher;
import com.lyj.hw_student.system.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lyj
 * @since 2025-06-04
 */
@RestController
@RequestMapping("/teacher")
public class TeacherController {
@Autowired
    private ITeacherService teacherService;
   @GetMapping("/getAllTeachers")
    public List<Teacher>getAllTeachers(){
       return teacherService.list();
   }


}
